using System;

[Serializable]
public class VehicleDestroyEvent : GameplayEvent
{
	public bool neededPrivateCar;

	public bool neededTank;

	public bool IfEvent(VehicleDestroyInfo newDestroy)
	{
		if (neededPrivateCar)
		{
			if (newDestroy.privateCar)
			{
				if (neededTank)
				{
					if (newDestroy.isTank)
					{
						return true;
					}
				}
				else if (!newDestroy.isTank)
				{
					return true;
				}
			}
		}
		else if (!newDestroy.privateCar)
		{
			return true;
		}
		return false;
	}
}
